package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Productcode;
import org.springframework.dao.DataAccessException;

import java.util.Set;

public interface ProductcodeDAO extends JpaDao<Productcode> {

	public Productcode findProductcodeById(Integer id) throws DataAccessException;

	public Productcode findProductcodeById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Productcode> findProductcodeByName(String name) throws DataAccessException;

	public Set<Productcode> findProductcodeByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Productcode> findProductcodeByNameContaining(String name_1) throws DataAccessException;

	public Set<Productcode> findProductcodeByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Productcode> findProductcodeByDescription(String description) throws DataAccessException;

	public Set<Productcode> findProductcodeByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Productcode> findProductcodeByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Productcode> findProductcodeByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Productcode findProductcodeByPrimaryKey(Integer id) throws DataAccessException;

	public Productcode findProductcodeByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Productcode> findProductcodesByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Productcode> findAllProductcodes() throws DataAccessException;

	public Set<Productcode> findAllProductcodes(int startResult, int maxRows) throws DataAccessException;

	public Set<Productcode> findProductcodeByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Productcode> findProductcodesByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Productcode findProductcodeByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Productcode findProductcodeByPhysicalPrimaryKey(String name, int startResult, int maxRows)
			throws DataAccessException;
}
